requireFile

fun requireFile(requireExists: Boolean = true): Path

Throw if this path is not a file, or doesn't exist and requireExists is true (as it is by default).

Return

this

Sources

js source
Link copied to clipboard